Differentiation of logarithmic functions